package com.design.strategy;

/**
 * @author leali
 * @title: StudentDiscount
 * @projectName design
 * @description: 学生票折扣类：具体策略类
 * @date 2021/12/31 22:42
 */
public class StudentDiscount implements Discount {
    @Override
    public double calculate(double price) {
        System.out.println("学生票");
        return price * 0.8;
    }
}
